using System;
using System.Collections;
using System.Collections.Generic;

namespace FreeFlowAdministrator
{
	/// <summary>
	/// Summary description for UIActionList.
	/// </summary>
	public class UIActionList
	{
    private List<UIAction> actions;
		public UIActionList()
		{
      actions = new List<UIAction>();
		}

    public void Add(UIAction action)
    {
      actions.Add(action);
    }

    public void Add(UIActionList actions)
    {
      for (int i = 0; i < actions.Count; i++)
      {
        Add(actions[i]);
      }
    }

    public void Add(string caption, string hint, ActionExecuteDelegate executeDelegate)
    {
      Add(new UIAction(caption, hint, executeDelegate));
    }

    public void Add(string groupCaption)
    {
      Add(new UIAction(groupCaption));
    }

    public int Count
    {
      get
      {
        return actions.Count;
      }
    }

    public UIAction this[int index]
    {
      get
      {
        return (UIAction)actions[index];
      }
    }
	}
}
